<HTML><HEAD><TITLE>Spring-DM Samples: Simple WebApp</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="styles/springsource.css" type="text/css" />
<title>Hello OSGi World</title>
</head>

</HEAD>

<BODY bgColor=white>
<div id="main_wrapper">
  <h1>
  Spring-DM Simple OSGi Web Application
  </h1>

  <h2>Introduction</h2>
	This application demonstrates the use of web applications (WARs)
	inside OSGi through Spring Dynamic Modules.
	You can view static resources (like this page), servlets and
	JSPs. The next section describes the dynamic pages available in this WAR.
 
  <h2>Sample content</h2>
  
  <p>You can select one of the following links to interact with the servlets and JSPs
  available in this sample.
  </p>
  
  <h3>Servlets</h3> 
  
  The application contains two servlets:
  <ul>
	  <li>Hello OSGi World servlet
	  <p/>
	  Simply click on the button below (which will send a
	  a <tt>POST</tt> request to a hello world servlet).
	  <form action="helloWorldServlet" method="POST">
		<input type="submit" value="Call Hello World Servlet"/>
	  </form>
    </li>
    <li>
      A OSGi content serving servlet
      
      <p/> The servlet sends to the browser
      the raw content of resources found inside the bundle. This main usage of this servlet
      is to see, direclty from the web application, the servlet and JSP <a href="#sources">sources</a>.

    </li>
  </ul>
  
  <h3>Java Server Pages</h3>
  The sample application provides two types of Java Server Pages:
  <ul>
     <li>A <a href="hello-osgi-world.jsp">bare-bone</a> page that accesses the session</li>
     <li>A <a href="jsp-tag-osgi-world.jsp">tag-based</a> page that uses the standard taglib </li>
  </ul>
  
 
  <p/>
  While the servlets/pages are simplistic, they show the main functionality working inside an OSGi platform.
  
  <h2>Sources</h2><a name="sources"> </a>
  To view the Servlet and JSP sources directly from the browser, use one of the links below. The content itself
  is served through a Servlet (the Resource Serving below) that sends to the browser the content of the files 
  found in its bundle classpath.
  
  <ul>
	<li><a href="./resourceServlet?resource=/WEB-INF/classes/org/springframework/osgi/samples/simplewebapp/servlet/HelloOsgiWorldServlet.java">Hello World Servlet</a></li>
	<li><a href="./resourceServlet?resource=/WEB-INF/classes/org/springframework/osgi/samples/simplewebapp/servlet/ResourceServingServlet.java">Resource Serving Servlet</a></li>
	<li><a href="./resourceServlet?resource=/hello-osgi-world.jsp">bare-bone JSP</a></li>
	<li><a href="./resourceServlet?resource=/jsp-tag-osgi-world.jsp">tag-based JSP</a></li>
	<li><a href="./resourceServlet?resource=/WEB-INF/web.xml">Web application <tt>web.xml</tt></a></li>
	<li><a href="./resourceServlet?resource=">WAR OSGi bundle content</a></li>
  </ul>
  
  <h2>Requirements</h2> 
  
  This sample requires:
  <ul>
    <li>an OSGi 4.0+ platform</li>
    <li>Spring-DM 1.1 + dependencies</li>
    <li>Apache Tomcat 5.5.x+</li>
    <li>Apache Jasper 2 Engine </li>
  </ul>
  
  Note that all the dependencies are automatically downloaded when running the sample.
  
  <table class="footer">
    <tr>
      <td><a href="./">Home</a></td>
      <td align="right"><img src="./images/springsource-logo.png"/></td>
	</tr>
  </table>
 
</div>
</BODY>
</HTML>